package com.jieshuibao.model.db;

import java.util.ArrayList;
import java.util.List;

public class TeacherExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private int pageIndex;

    private int pageSize;

    public TeacherExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex=pageIndex;
    }

    public int getPageIndex() {
        return this.pageIndex;
    }

    public void setPageSize(int pageSize) {
        this.pageSize=pageSize;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public TeacherExample(int pageIndex, int pageSize) {
        this();
        this.pageIndex=pageIndex;
        this.pageSize=pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andDutyIsNull() {
            addCriterion("duty is null");
            return (Criteria) this;
        }

        public Criteria andDutyIsNotNull() {
            addCriterion("duty is not null");
            return (Criteria) this;
        }

        public Criteria andDutyEqualTo(String value) {
            addCriterion("duty =", value, "duty");
            return (Criteria) this;
        }

        public Criteria andDutyNotEqualTo(String value) {
            addCriterion("duty <>", value, "duty");
            return (Criteria) this;
        }

        public Criteria andDutyGreaterThan(String value) {
            addCriterion("duty >", value, "duty");
            return (Criteria) this;
        }

        public Criteria andDutyGreaterThanOrEqualTo(String value) {
            addCriterion("duty >=", value, "duty");
            return (Criteria) this;
        }

        public Criteria andDutyLessThan(String value) {
            addCriterion("duty <", value, "duty");
            return (Criteria) this;
        }

        public Criteria andDutyLessThanOrEqualTo(String value) {
            addCriterion("duty <=", value, "duty");
            return (Criteria) this;
        }

        public Criteria andDutyLike(String value) {
            addCriterion("duty like", value, "duty");
            return (Criteria) this;
        }

        public Criteria andDutyNotLike(String value) {
            addCriterion("duty not like", value, "duty");
            return (Criteria) this;
        }

        public Criteria andDutyIn(List<String> values) {
            addCriterion("duty in", values, "duty");
            return (Criteria) this;
        }

        public Criteria andDutyNotIn(List<String> values) {
            addCriterion("duty not in", values, "duty");
            return (Criteria) this;
        }

        public Criteria andDutyBetween(String value1, String value2) {
            addCriterion("duty between", value1, value2, "duty");
            return (Criteria) this;
        }

        public Criteria andDutyNotBetween(String value1, String value2) {
            addCriterion("duty not between", value1, value2, "duty");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiIsNull() {
            addCriterion("goodAtBusi is null");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiIsNotNull() {
            addCriterion("goodAtBusi is not null");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiEqualTo(String value) {
            addCriterion("goodAtBusi =", value, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiNotEqualTo(String value) {
            addCriterion("goodAtBusi <>", value, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiGreaterThan(String value) {
            addCriterion("goodAtBusi >", value, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiGreaterThanOrEqualTo(String value) {
            addCriterion("goodAtBusi >=", value, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiLessThan(String value) {
            addCriterion("goodAtBusi <", value, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiLessThanOrEqualTo(String value) {
            addCriterion("goodAtBusi <=", value, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiLike(String value) {
            addCriterion("goodAtBusi like", value, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiNotLike(String value) {
            addCriterion("goodAtBusi not like", value, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiIn(List<String> values) {
            addCriterion("goodAtBusi in", values, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiNotIn(List<String> values) {
            addCriterion("goodAtBusi not in", values, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiBetween(String value1, String value2) {
            addCriterion("goodAtBusi between", value1, value2, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andGoodAtBusiNotBetween(String value1, String value2) {
            addCriterion("goodAtBusi not between", value1, value2, "goodAtBusi");
            return (Criteria) this;
        }

        public Criteria andCourseIsNull() {
            addCriterion("course is null");
            return (Criteria) this;
        }

        public Criteria andCourseIsNotNull() {
            addCriterion("course is not null");
            return (Criteria) this;
        }

        public Criteria andCourseEqualTo(String value) {
            addCriterion("course =", value, "course");
            return (Criteria) this;
        }

        public Criteria andCourseNotEqualTo(String value) {
            addCriterion("course <>", value, "course");
            return (Criteria) this;
        }

        public Criteria andCourseGreaterThan(String value) {
            addCriterion("course >", value, "course");
            return (Criteria) this;
        }

        public Criteria andCourseGreaterThanOrEqualTo(String value) {
            addCriterion("course >=", value, "course");
            return (Criteria) this;
        }

        public Criteria andCourseLessThan(String value) {
            addCriterion("course <", value, "course");
            return (Criteria) this;
        }

        public Criteria andCourseLessThanOrEqualTo(String value) {
            addCriterion("course <=", value, "course");
            return (Criteria) this;
        }

        public Criteria andCourseLike(String value) {
            addCriterion("course like", value, "course");
            return (Criteria) this;
        }

        public Criteria andCourseNotLike(String value) {
            addCriterion("course not like", value, "course");
            return (Criteria) this;
        }

        public Criteria andCourseIn(List<String> values) {
            addCriterion("course in", values, "course");
            return (Criteria) this;
        }

        public Criteria andCourseNotIn(List<String> values) {
            addCriterion("course not in", values, "course");
            return (Criteria) this;
        }

        public Criteria andCourseBetween(String value1, String value2) {
            addCriterion("course between", value1, value2, "course");
            return (Criteria) this;
        }

        public Criteria andCourseNotBetween(String value1, String value2) {
            addCriterion("course not between", value1, value2, "course");
            return (Criteria) this;
        }

        public Criteria andPersonBusiIsNull() {
            addCriterion("personBusi is null");
            return (Criteria) this;
        }

        public Criteria andPersonBusiIsNotNull() {
            addCriterion("personBusi is not null");
            return (Criteria) this;
        }

        public Criteria andPersonBusiEqualTo(String value) {
            addCriterion("personBusi =", value, "personBusi");
            return (Criteria) this;
        }

        public Criteria andPersonBusiNotEqualTo(String value) {
            addCriterion("personBusi <>", value, "personBusi");
            return (Criteria) this;
        }

        public Criteria andPersonBusiGreaterThan(String value) {
            addCriterion("personBusi >", value, "personBusi");
            return (Criteria) this;
        }

        public Criteria andPersonBusiGreaterThanOrEqualTo(String value) {
            addCriterion("personBusi >=", value, "personBusi");
            return (Criteria) this;
        }

        public Criteria andPersonBusiLessThan(String value) {
            addCriterion("personBusi <", value, "personBusi");
            return (Criteria) this;
        }

        public Criteria andPersonBusiLessThanOrEqualTo(String value) {
            addCriterion("personBusi <=", value, "personBusi");
            return (Criteria) this;
        }

        public Criteria andPersonBusiLike(String value) {
            addCriterion("personBusi like", value, "personBusi");
            return (Criteria) this;
        }

        public Criteria andPersonBusiNotLike(String value) {
            addCriterion("personBusi not like", value, "personBusi");
            return (Criteria) this;
        }

        public Criteria andPersonBusiIn(List<String> values) {
            addCriterion("personBusi in", values, "personBusi");
            return (Criteria) this;
        }

        public Criteria andPersonBusiNotIn(List<String> values) {
            addCriterion("personBusi not in", values, "personBusi");
            return (Criteria) this;
        }

        public Criteria andPersonBusiBetween(String value1, String value2) {
            addCriterion("personBusi between", value1, value2, "personBusi");
            return (Criteria) this;
        }

        public Criteria andPersonBusiNotBetween(String value1, String value2) {
            addCriterion("personBusi not between", value1, value2, "personBusi");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadIsNull() {
            addCriterion("teacherHead is null");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadIsNotNull() {
            addCriterion("teacherHead is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadEqualTo(String value) {
            addCriterion("teacherHead =", value, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadNotEqualTo(String value) {
            addCriterion("teacherHead <>", value, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadGreaterThan(String value) {
            addCriterion("teacherHead >", value, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadGreaterThanOrEqualTo(String value) {
            addCriterion("teacherHead >=", value, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadLessThan(String value) {
            addCriterion("teacherHead <", value, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadLessThanOrEqualTo(String value) {
            addCriterion("teacherHead <=", value, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadLike(String value) {
            addCriterion("teacherHead like", value, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadNotLike(String value) {
            addCriterion("teacherHead not like", value, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadIn(List<String> values) {
            addCriterion("teacherHead in", values, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadNotIn(List<String> values) {
            addCriterion("teacherHead not in", values, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadBetween(String value1, String value2) {
            addCriterion("teacherHead between", value1, value2, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andTeacherHeadNotBetween(String value1, String value2) {
            addCriterion("teacherHead not between", value1, value2, "teacherHead");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("userId =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("userId <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("userId >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("userId >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("userId <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("userId <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("userId like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("userId not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("userId in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("userId not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("userId between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("userId not between", value1, value2, "userId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}